import request from '@/utils/request'

export default{

    // 1.添加课程信息
    addCourseInfo(courseInfoVo){
        return request({
            url: `/eduservice/course/addCourse`,
            method: 'post',
            data:courseInfoVo
          })
    },
    getListTeacher(){
        return request({
            url: `/eduservice/teacher/list`,
            method: 'get'
          })
    },
    getCourseInfoId(id){
        return request({
            url: `/eduservice/course/getCourseInfo/${id}`,
            method: 'get'
          })
    },
    updateCourseInfo(courseInfo){
        return request({
            url: `/eduservice/course/updateCourseInfo`,
            method: 'post',
            data:courseInfo
          })
    },
}
